
const environment = process.env.NODE_ENV
const devUrl = 'http://192.168.1.3/resource_manage/public/'
// const devUrl = 'https://book.usharego.com/resource_manage/public/'
const prodUrl = 'https://book.usharego.com/resource_manage/public/' //线上
const baseURL = environment === 'development' ? devUrl : prodUrl
const imgUrl =
  environment === 'development' ? devUrl + 'uploads/' : prodUrl + 'uploads/'
// 判断是公众号还是应用配置 isConfiguration=1是公众号
const isConfiguration = 1
const configurationPrompt =
  isConfiguration === 1
    ? '链接必须是 https 或 #应用开头 且域名需在微信应用后台配置'
    : '链接必须是 https 或 http 开头'

const upUrl =
  environment === 'development'
    ? devUrl + 'uploads/files'
    : prodUrl + 'uploads/files'
export {
  environment,
  baseURL,
  imgUrl,
  upUrl,
  isConfiguration,
  configurationPrompt
}
